package com.xiaolin.storage.service.impl;

import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
import com.xiaolin.storage.mapper.StorageMapper;
import com.xiaolin.storage.model.Storage;
import com.xiaolin.storage.service.StorageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author xiaolin
 * @description 描述
 * @since 2024/5/24
 */
@Service
public class StorageServiceImpl implements StorageService {

    @Autowired
    private StorageMapper storageMapper;
    @Override
    public String reduceStorage(Integer productId) {
        storageMapper.reduceStorage(productId);
        return "库存扣减成功";
    }
}
